<template>
  <div class="rem_btn" v-show="!isAddMore">
    <div class="add-more" type="default" size="default" @click="AddMore">加载更多</div>
  </div>
</template>

<script lang="ts">
import {defineComponent} from "vue";
export default defineComponent({
    name:"BtnAddMore",
})
</script>

<script lang="ts" setup>
import {useLiveStore} from "@/store/modules/live";
import {storeToRefs} from "pinia";

const LiveStore = useLiveStore()
const {isAddMore} = storeToRefs(LiveStore)
const {AddMore} = LiveStore

</script>

<style scoped lang="scss">
.rem_btn{
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    .add-more{
        width: 140px;
        height: 40px;
        font-size:14px;
        line-height: 40px;
        color: #82858e;
        border: 1px solid #eaecf0;
        border-radius: 4px;
        background: #fff;
        text-align: center;
        cursor: pointer;
    }
}
</style>
